{% load sekizai_tags %}

{% render_block "css-to-file" %}

{% addtoblock "css-to-file" %}
<style type="text/css">body { color: red; }</style>
{% endaddtoblock %}